export default {
    state() {
         return {
             // 用户是否登录
             isLogined: localStorage.getItem('x-auth-token') ? true : false
         }
    },
     mutations: {
         // 设置用户登录状态
         setIsLogined(state, isLogined) {
             state.isLogined = isLogined
         }
     }
 }